package com.web_uml.view {
    import flash.events.Event;

    import mx.containers.Canvas;
    import mx.controls.Button;
    import mx.controls.ButtonBar;

    public class ToolsView extends Canvas implements IView{
        private var btnBar:ButtonBar;

        public function ToolsView() {
            super();
            this.addEventListener(Event.ADDED_TO_STAGE, initMe);
        }

        private function initMe(event:Event):void {
            this.btnBar = new ButtonBar();
            this.addChild(btnBar);
            ///////////
            var btn:Button;
            btn=new Button();
            btn.label="1";
            btnBar.addChild(btn);
            
        }

    }
}